﻿using PLCSharp.CoreModel.Prism;
using PLCSharp.Models;
using Prism.Dialogs;
using Prism.Events;
using Prism.Ioc;
using System.Windows.Controls;

namespace PLCSharp.Views.ModeState
{
    [DialogMenu(ViewName = "StateConfig",
       IconKind = "\ue659",
       DisplayName = "状态机配置", UserLevel = Authority.Authority.Engineer, Index = 1)]
    public partial class StateConfig : UserControl
    {
        public StateConfig()
        {
            InitializeComponent();
        }
    }


    public class StateConfigViewModel : DialogAwareBase
    {
        public StateConfigViewModel(IContainerExtension container, IEventAggregator ea, IDialogService dialogService) : base(container, ea, dialogService)

        {
            GlobalModel = container.Resolve<GlobalModel>();
            Title = "状态设置";
        }

        public GlobalModel GlobalModel { get; set; }
    }


}
